package com.tsky.yyj.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @function：推广明细
 * @author: cainiao
 * @version 1.0
 * @time: 2013-6-10 上午11:30:56
 */
@Entity
@Table(name = "T_YYJ_Spread")
public class Spread {
	@Id
	private String id;// 序号
	@ManyToOne @JoinColumn(name="product_id")
	private Product product;// @商品
	private String agent;// @代理商用户名（代理人ID）
	private String ip;// 代理推广点击IP明细

	// private int amount;//会员使用次数，汇总的结果
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}
